package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DrugResolveTableMapper;
import com.ruoyi.system.domain.DrugResolveTable;
import com.ruoyi.system.service.IDrugResolveTableService;

/**
 * 规则查询字段记录Service业务层处理
 * 
 * @author wmb
 * @date 2020-08-26
 */
@Service
public class DrugResolveTableServiceImpl implements IDrugResolveTableService 
{
    @Autowired
    private DrugResolveTableMapper drugResolveTableMapper;

    /**
     * 查询规则查询字段记录
     * 
     * @param id 规则查询字段记录ID
     * @return 规则查询字段记录
     */
    @Override
    public DrugResolveTable selectDrugResolveTableById(Long id)
    {
        return drugResolveTableMapper.selectDrugResolveTableById(id);
    }

    /**
     * 查询规则查询字段记录列表
     * 
     * @param drugResolveTable 规则查询字段记录
     * @return 规则查询字段记录
     */
    @Override
    public List<DrugResolveTable> selectDrugResolveTableList(DrugResolveTable drugResolveTable)
    {
        return drugResolveTableMapper.selectDrugResolveTableList(drugResolveTable);
    }

    /**
     * 新增规则查询字段记录
     * 
     * @param drugResolveTable 规则查询字段记录
     * @return 结果
     */
    @Override
    public int insertDrugResolveTable(DrugResolveTable drugResolveTable)
    {
        return drugResolveTableMapper.insertDrugResolveTable(drugResolveTable);
    }

    /**
     * 修改规则查询字段记录
     * 
     * @param drugResolveTable 规则查询字段记录
     * @return 结果
     */
    @Override
    public int updateDrugResolveTable(DrugResolveTable drugResolveTable)
    {
        return drugResolveTableMapper.updateDrugResolveTable(drugResolveTable);
    }

    /**
     * 批量删除规则查询字段记录
     * 
     * @param ids 需要删除的规则查询字段记录ID
     * @return 结果
     */
    @Override
    public int deleteDrugResolveTableByIds(Long[] ids)
    {
        return drugResolveTableMapper.deleteDrugResolveTableByIds(ids);
    }

    /**
     * 删除规则查询字段记录信息
     * 
     * @param id 规则查询字段记录ID
     * @return 结果
     */
    @Override
    public int deleteDrugResolveTableById(Long id)
    {
        return drugResolveTableMapper.deleteDrugResolveTableById(id);
    }



}
